#include <QApplication>
#include "leftwidget.h"
#include "ocrprocessor.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    LeftWidget w;
    OCRProcessor processor;
    // 连接信号和槽
    QObject::connect(&w, &LeftWidget::ocrRequested,
                     &processor, &OCRProcessor::handleOCRRequest);
    w.show();
    return app.exec();
}
